// 搜索模块请求
import request from '../utils/request'

export const getSearchSuggestion = q => {
  // 传递的参数
  return request({
    url: '/app/v1_0/suggestion',
    method: 'GET',
    params: {
      q
    }
  })
}

// 参数是对象，获取搜索结果
export const getSearchResult = params => {
  // 传递的参数
  return request({
    url: '/app/v1_0/search',
    method: 'GET',
    params
  })
}
